import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

/**
 * Created by leanne on 7/17/14.
 */
public class triangle {
    public static void main(String args[]) throws IOException {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        System.out.println("Please enter number for size of triangle");
        try {
            int input = Integer.parseInt(reader.readLine());
            drawTriangle(input);
        } catch(NumberFormatException n) {
            System.out.println("Incorrect format");
        }
    }

    private static void drawTriangle(int numOfLines) {
        int numOfAsterisks = 1;
        for(int i = 0; i < numOfLines; i++) {
            String asterisks = "";
            for(int j = 0; j < numOfAsterisks; j++) {
                asterisks += "*";
            }
            System.out.println(asterisks);
            numOfAsterisks++;
        }
    }
}